package com.aiden.cashbook.data.user

import com.aiden.cashbook.bean.User
import com.aiden.cashbook.data.Callback

interface UserDataSource {

    fun getCode(phone: String, type: String, callback: Callback<String>)

    fun auth(phone: String, code: String, type: String, callback: Callback<User>)

    fun modify(user: User, callback: Callback<User>)

    fun userInfo(id: Long, callback: Callback<User>)
}